﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Cwt
{
    /// <summary>
    /// 文章信息
    /// </summary>
    public class Article
    {
        /// <summary>
        /// 编号
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        public Guid CategoryId { get; set; }

        public Category Category { get; set; }

        /// <summary>
        /// 发布日期
        /// </summary>
        public DateTime PostedDate { get; set; }

        /// <summary>
        /// 发布人
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// 发布人
        /// </summary>
        public Guid AuthorId { get; set; }

        /// <summary>
        /// 允许回复
        /// </summary>
        public bool IsAllowReplay { get; set; }

        /// <summary>
        /// 回复是否可见
        /// </summary>
        public bool IsReplayVisible { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 内容html
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 预览图片地址
        /// </summary>
        public string PreviewImageUrl { get; set; }

        /// <summary>
        /// 简介html
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 顶置程度
        /// </summary>
        public int TopPoint { get; set; }

        /// <summary>
        /// 访问次数
        /// </summary>
        public int VisitPoint { get; set; }
    }
}
